<%-- 
    Document   : asistenciaConsultada
    Created on : 15/12/2010, 09:09:13 PM
    Author     : Jose Leonardo
--%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">
<%@ include file='../Templates/security.jsp' %>

<script language="JavaScript">
    function consultarAsist(){
        $.getJSON("consultarAsistencia.do",function(data){
            $('#result').empty();
            $.each(data.ListaAsistencias, function(i,item){
                var string = "<tr><td>"+item.fecha_guardia+"</td><td>"+
                    item.hora_llegada+"</td><td>"+item.hora_salida+"</td><td>"+
                    item.nombre_espacio+"</td></tr>";
                $('#result').append(string);
            });
        });
    }
    consultarAsist();
</script>

<center>
    <table>
        <thead>
            <tr>
                <th>Fecha de la guardia</th>
                <th>Hora de llegada</th>
                <th>Hora de salida</th>
                <th>Ubicaci&oacute;n</th>
            </tr>
        </thead>
        <tbody id="result">

        </tbody>
    </table>

</center>
